import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n= sc.nextInt();
        int arr[][]=new int[n+1][n+1];
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length ; j++) {
                int a= sc.nextInt();
                arr[i][j]=a;
                arr[j][i]=a;
            }
        }
        int q=1;
        for (int i = 0; i < ; i++) {
            
        }
    }
}